﻿@model kxcxw.Data.Entities.SysItemDetial
@{
    ViewBag.Title = "开心促销网后台管理";
    Layout = "~/Areas/Admin/Views/Shared/_DictLayout.cshtml";
}
<h2>
    @Html.ActionLink("大类管理", "Index") &raquo; @Html.ActionLink("添加字典", "CreateDictDetial", null, new { @class = "active" })</h2>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<div id="main">
    @using (Html.BeginForm("CreateDictDetial", "Dict", FormMethod.Post))
    {
        @Html.ValidationSummary(true)
        <fieldset>
            @Html.Hidden("hidDictId", @ViewData["dictId"])
            <div class="field">
                <div class="editor-field" style="width:auto; margin-right:20px;">
                    @Html.RadioButton("rbtnDictId", "0")与<b>@ViewData["dictName"]</b>同级
                </div>
                <div class="editor-field" style="width:auto;">
                    @Html.RadioButton("rbtnDictId", "1", true)是<b>@ViewData["dictName"]</b>子级
                </div>
            </div>
            <div class="field">
                <div class="editor-label">
                    类别名称
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.itemDetialName)
                    @Html.ValidationMessageFor(model => model.itemDetialName)
                </div>
            </div>
            <div class="field">
            <p>
                <input type="submit" value="创 建" />
            </p>
            </div>
        </fieldset>
    }
</div>
